<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<form action="add.do" method="post">
		<table border="1" cellspacing="0" align="center">
			<tr>
				<td>姓名</td>
				<td><input type="text" name="name" /></td>
			</tr>
			<tr>
				<td>性别</td>
				<td>男:<input type="radio" name="gender" value="0" /> 女:<input
					type="radio" name="gender" value="1" /></td>
			</tr>
			<tr>
				<td>生日</td>
				<td><input type="date" name="birthday" /></td>
			</tr>
			<tr>
				<td>职位</td>
				<td><input type="text" name="job" /></td>
			</tr>
			<tr>
				<td>部门</td>
				<td><select name="deptId">
						<c:forEach items="${deptList }" var="dept">
							<option value="${dept.id }">${dept.name }</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<td colspan="2"><button type="submit">添加员工</button></td>
			</tr>
		</table>
	</form>
</body>
</html>